﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ImoviesBlazor.Shared.Entities
{
    public class TeleplayVlink
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public uint Id { get; set; }

        [Required]
        public string TeleplayId { get; set; }

        [Required]
        [StringLength(100)]
        public string Name { get; set; }

        [Required]
        public string Url { get; set; }

        public string RealUrl { get; set; } = string.Empty;



        public TeleplayVlink()
        {
        }

        public TeleplayVlink(string teleplayId, string name, string url)
        {
            this.TeleplayId = teleplayId;
            this.Name = name;
            this.Url = url;
        }
    }
}
